﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WcfServiceSchool
{
    public class SubjectDTO
    {
        public int SubjectId { get; set; }
        public string SubjectName { get; set; }

        public static SubjectDTO CreateFromSubject(Subject subject)
        {
            SubjectDTO subjectDTO = new SubjectDTO();
            subjectDTO.SubjectId = subject.SubjectId;
            subjectDTO.SubjectName = subject.SubjectName;
            return subjectDTO;
        }
    }
}